package com.design;

/**
 * 懒汉模式（线程不安全）
 */
public class Singleton01 {
    private Singleton01 singleton01;

    private Singleton01(){

    }
    public Singleton01 getSingleton01(){
        if(singleton01 == null){
            singleton01 = new Singleton01();
        }
        return singleton01;
    }
}
